<?php
/**
 * 我的主页
 */
//require_once dirname(__DIR__)."/login_filter.php";
require_once dirname(dirname(__DIR__))."/common.php";
use app\cls\tom\Response;
use app\cls\tom\SysResource;
use app\cls\tom\Tools;
use app\model\Users;
use app\model\UserMaterial;
//分页
$page = isset($_REQUEST["page"]) ? intval($_REQUEST["page"]) : 1;
$page = $page > 0 ? $page : 1;
$pageSize = 20;
//实例化数据库
$db = SysResource::getDB(false);
$UserMaterial = new UserMaterial($db);
//先去查询是网春大拜年的
$wangchundabainian=$UserMaterial->wangchundabainian();
$data=$UserMaterial->topic_wangchundabainian($page,$pageSize,$wangchundabainian['id']);
if(empty($data)){
    $data=[];
}
Response::output(0,"查询成功",$data);
